solved the problem with the moving of the marker at zooming
This commit is contained in:
parent
39d6527ea4
commit
d531a1f255
@ -23,7 +23,7 @@
|
|||||||
* Description: JS file to show a map, for markers, left slide div, ...
|
* Description: JS file to show a map, for markers, left slide div, ...
|
||||||
*
|
*
|
||||||
* @author Pascal Neis, pascal@neis-one.org
|
* @author Pascal Neis, pascal@neis-one.org
|
||||||
* @version 0.1 2011-05-15
|
* @version 0.1.1 2011-06-09
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//======================
|
//======================
|
||||||
@ -116,8 +116,10 @@ function init(){
|
|||||||
externalGraphic: '${icon}',
|
externalGraphic: '${icon}',
|
||||||
// Makes sure the background graphic is placed correctly relative
|
// Makes sure the background graphic is placed correctly relative
|
||||||
// to the external graphic.
|
// to the external graphic.
|
||||||
backgroundXOffset: 0,
|
backgroundXOffset: -11,
|
||||||
backgroundYOffset: -7,
|
backgroundYOffset: -40,
|
||||||
|
graphicXOffset: -11,
|
||||||
|
graphicYOffset: -40,
|
||||||
|
|
||||||
// Set the z-indexes of both graphics to make sure the background
|
// Set the z-indexes of both graphics to make sure the background
|
||||||
// graphics stay in the background (shadows on top of markers looks
|
// graphics stay in the background (shadows on top of markers looks
|
||||||
@ -129,7 +131,7 @@ function init(){
|
|||||||
graphicWidth: 22,
|
graphicWidth: 22,
|
||||||
graphicHeight: 34
|
graphicHeight: 34
|
||||||
}),
|
}),
|
||||||
rendererOptions: {yOrdering: true}
|
//rendererOptions: {yOrdering: true}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
// Add a drag feature control to move features around.
|
// Add a drag feature control to move features around.
|
||||||
@ -141,7 +143,6 @@ function init(){
|
|||||||
feature.move(map.getLonLatFromPixel(pixel));
|
feature.move(map.getLonLatFromPixel(pixel));
|
||||||
routing(false); },
|
routing(false); },
|
||||||
onLeave: function(f){
|
onLeave: function(f){
|
||||||
alert("here");
|
|
||||||
if(!ISCALCULATING){ routing(false); }}
|
if(!ISCALCULATING){ routing(false); }}
|
||||||
});
|
});
|
||||||
map.addControl(dragFeatures);
|
map.addControl(dragFeatures);
|
||||||
|
Loading…
Reference in New Issue
Block a user