[Google Maps API v3] Markerimage scaledSize first view problem

2012-01-17 Thread pec76
Hello, My goal is to load custom images as marker icon, and resize them (the images are different). Code : var icone = "http://www.site.com/image_xyz.jpg"; var scale = 0.33 ; // create a js image object var ti=new Image(); ti.src=icone; // get cu

[Google Maps API v3] MarkerImage and canvas

2011-05-18 Thread DreamFalcon
Hi, I'm trying to draw the markers on the canvas for faster drawing. But if I use the scaledSize option on the marker, no canvas is created. My code: var icon_Size= 100; var resize = 50; //50% of icon_Size function createSite(point, site) { var iconSize2=icon_Size * (resize/100);

[Google Maps API v3] MarkerImage cropped at different zoom levels

2011-03-08 Thread mzda
Hi, I use different icons to show the points on the map. The ImageMarker is set to a size of 32 : 32. As you can see on the screenshot, the icons are not completely shown (cropped) on the screen. the top of the icons(where the buttons should be shown) are cut. But if I change the zoom level. the ic

[Google Maps API v3] MarkerImage, size and scaledSize

2011-03-03 Thread Myrdhin
Hello, I don't understand the MarkerImage constructor and his 'size' and 'scaledSize' parameters... In docs, i can read : *"To scale the image, whether sprited or not, set the value of scaledSize to the size of the whole image and set size, origin and anchor in scaled values. The MarkerImage c

Re: [Google Maps API v3] Markerimage

2011-01-06 Thread Nico Oudshoorn
The image name is http://www.meerijden.nu/dd-startl.png This was de working code in V2 //var baseIcon = new GIcon(); //baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";; //baseIcon.iconSize = new GSize(34, 20); //baseIcon.shadowSize = new GSize(37, 34); //baseIcon.iconAnchor = new

Re: [Google Maps API v3] Markerimage

2011-01-04 Thread Chris Broadfoot
Please link to your image. We can't help if we can't access 'dd-startl.png'. Also, ensure sure you read the docs on constructing a MarkerImage: http://code.google.com/apis/maps/documentation/javascript/reference.html#MarkerImage On Wed, Jan 5, 2011 at 6:01 AM, Nico Oudshoorn wrote: > 1) > var i

[Google Maps API v3] Markerimage

2011-01-04 Thread Nico Oudshoorn
1) var iconvt = new google.maps.MarkerImage('dd-startl.png', new google.maps.Size(34, 20), new google.maps.Point(34,9), new google.maps.Point(9, 0) ); 2) var iconvt = 'dd-startl.png', With definition 1 I don't get a marker on the map and with definition 2 I do. If I give definition 1 without

[Google Maps API v3] MarkerImage Problems

2010-08-17 Thread Neil Drinkall
Hi all, I just tried changing my markers to use a MarkerImage instead of just an icon, as I wanted to change the anchor point. What I'm seeing is that the API doesn't seem to realise that it's been given a MarkerImage object instead of a string to a URL. This is the function I am using: function

[Google Maps API v3] MarkerImage class properties

2010-06-29 Thread kilkul
Why doesn't MarkerImage has any public / documented properties (like image, for getting its designated image URL)? I've managed, until today, to "read" it by accessing its Ua property (found by myself, by "hacking" the class' properties), but it seems to have stopped working today. I could / will d

[Google Maps API v3] MarkerImage rotation

2010-06-28 Thread Gigine
Hi, I just would like to know if it is possible to indicate a rotation grade to a Marker Image ? In fact, I would like to be able to mark 8 markers on the map set as a flower but all my pictures are straight. The rotation will be regular (45°). Can someone help me please ? Thx ! -- You receive

[Google Maps API v3] MarkerImage Options

2010-06-23 Thread ELL Admin
Hi, newbie question: I'm trying to set options for my marker icon image. I found example code in this form: var iconimage = new google.maps.MarkerImage(icon, // Icon size (w, h) iconSize, // Origin new google.maps.Point(0, 0),

[Google Maps API v3] MarkerImage sprites hobbled

2010-03-11 Thread Dave
I am working on converting my site to v3, and was excited to find the ability to define marker overlays from a sprite image using the MarkerImage origin option (http://code.google.com/apis/maps/ documentation/v3/reference.html#MarkerImage). Instead of loading 40 separate PNG images during initial l

[Google Maps API v3] MarkerImage Properties

2010-02-05 Thread Chad Killingsworth
I'm using the origin option of a MarkerImage to make use of CSS Sprites. The origin property is also an easy way for me to determine the state of a Marker. Unfortunately, there's not a documented way for me to query the property after creation. Is there any workaround I'm missing? Chad Killingswo