I have written a Google map V3 website in html and I am trying to
convert it to Django.

I was following this project; django-gmapi: 
http://code.google.com/p/django-gmapi/
Currently, the project can only render maps and markers and add basic
event listeners in Django.

I am adding my own codes into its javascript and I am having problems
with it.

Anyone has experience in this? Be it, tutorial or website.

First problem - I want detect the zoom level and show the markers:

*jquery.gmapi.js*

    function zoomDetect() {
         zoom = obj.getZoom();
         obj.zoomDetect = function() {
           if (zoom>20) {
             marker.setVisible(true);
           }
           else {
             marker.setVisible(false);
           }
         };

*views.py*

    maps.event.addListener(gmap, 'zoom_changed', 'gmap.detectZoom')

*index.html*

    window.gmap = {
      zoomChange:function() {
        this.zoomDetect();
      }
    };

Cheers!

-- 
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