How to show marker

29 views
Skip to first unread message

Dmytro Melnyk

unread,
Jul 8, 2011, 9:50:59 AM7/8/11
to google-map...@googlegroups.com
Hi all :)
How to show marker if they already exists in map but not show in my page. Link with marker http://maps.google.com/maps?&z=10&q=36.26577+-92.54324&ll=36.26577+-92.54324

My function for initialization Google map.

function initialize() {
    var latlng = new google.maps.LatLng(36.26577, -92.54324);
    var myOptions = {
      zoom: 16,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
}

Rossko

unread,
Jul 8, 2011, 2:38:22 PM7/8/11
to Google Maps JavaScript API v3

Javo Rosales

unread,
Jul 8, 2011, 3:20:45 PM7/8/11
to google-map...@googlegroups.com
var marker = new GMarker(....);
map.addOverlay(marker);

2011/7/8 Dmytro Melnyk <net...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/pV7h7roHbUUJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.

geoco...@gmail.com

unread,
Jul 8, 2011, 6:16:15 PM7/8/11
to Google Maps JavaScript API v3
On Jul 8, 3:20 pm, Javo Rosales <javo.rosa...@gmail.com> wrote:
> var marker = new GMarker(....);
> map.addOverlay(marker);

That is v2 syntax, this is the v3 api group...

var marker = new google.maps.Marker({MarkerOptions});
would be the v3 equivalent (where MarkerOptions includes the reference
to the Map object).
See the documentation for the details and examples.

-- Larry


>
> 2011/7/8 Dmytro Melnyk <neti...@gmail.com>
>
>
>
>
>
>
>
> > Hi all :)
> > How to show marker if they already exists in map but not show in my page.
> > Link with marker
> >http://maps.google.com/maps?&z=10&q=36.26577+-92.54324&ll=36.26577+-9...
Reply all
Reply to author
Forward
0 new messages