Update offset for marker icon to accurately position it
This commit is contained in:
parent
8e1b0b6908
commit
efb80f8143
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ function createMap(divName, options) {
|
|||
|
||||
function getArrowIcon() {
|
||||
var size = new OpenLayers.Size(25, 22);
|
||||
var offset = new OpenLayers.Pixel(-30, -27);
|
||||
var offset = new OpenLayers.Pixel(-22, -20);
|
||||
var icon = new OpenLayers.Icon("<%= asset_path 'arrow.png' %>", size, offset);
|
||||
|
||||
return icon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue