Results 1 to 2 of 2

Thread: how to bound to markers

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Location
    Netherlands
    Posts
    87
    Vote Rating
    1
      0  

    Default how to bound to markers

    i am extracting a couple of locations from a json which i render on a map by adding markers. i also try to bound the view to the markers like shown below without success. the markers are added but the view remains in palo alto. what would be the way to get the view to bound to the added markers?

    Code:
        addMarker: function (position) {
                var marker = new google.maps.Marker({
                    map: this.mapView._map,
                    position: position,
                    bounds: true,
                });
        },

  2. #2
    Sencha Premium Member
    Join Date
    Nov 2011
    Location
    Netherlands
    Posts
    87
    Vote Rating
    1
      0  

    Default

    since i switched from jquery mobile the above code seemed correct. however looking in to the google api, the markeroptions do not have a bounds property. sorry i thought they have. that means I have to get and extend bounds for each marker manually. or is there a sencha touch map property that i overlooked that might do the same?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •