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
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);
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
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
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
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
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
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
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
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
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),
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
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
13 matches
Mail list logo