Thanks! Hmmm, just wondering how to use this line of code from the
link?

MarkerImage(url:string, size?:Size, origin?:Point, anchor?:Point,
scaledSize?:Size)

Where do I put this line in my code?(after I have chenged the values)
Preciate the help!

var markerIcon1 = new google.maps.MarkerImage('bilder/bilder_ikoner/
icon1.png');
var markerIcon2 = new google.maps.MarkerImage('bilder/bilder_ikoner/
icon2.png');

                var marker = new google.maps.Marker({
                        map: map,
                        draggable: false,
                        center: position,
                        position: position,
                        visible: true,
                        html: infobox,
                        title: marker_title,
                        icon: markerIcon1
                });

                google.maps.event.addListener(marker, "click", function () {
                ib.setPosition(this.position);
                ib.setContent(this.html);
                ib.open(map);
                this.setIcon(markerIcon2);
                });

                // Mouseover
                google.maps.event.addListener(marker, 'mouseover', function() {
                this.setIcon(markerIcon2);
                });

                // Mouseout
                google.maps.event.addListener(marker, 'mouseout', function() {
                this.setIcon(markerIcon1);
                });

On 24 Aug, 23:35, "[email protected]" <[email protected]> wrote:
> On Aug 24, 2:21 pm, 3D-kreativ <[email protected]> wrote:
>
> > Hi,
>
> > I use a filled circle within a 28x28 png image for the marker and a
> > bigger filled circle within a 38x38 png image to onmouseover. This
> > creates a nice effect, but the problem is that the bigger image hasn't
> > the center position as the smaller image. Looks like the images starts
> > from the bottom of the image. Could this be solved in any way? Thanks!
>
> See the documentation on 
> MarkerImage:http://code.google.com/apis/maps/documentation/javascript/reference.h...
>
> in particular:
> anchor          Point   The position at which to anchor an image in
> correspondance to the location of the marker on the map. By default,
> the anchor is located along the center point of the bottom of the
> image.
>
>   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to