0

I wrote map code which is working properly in sencha-touch framework. I need some thing like wikimapia.org with a fixed cross or any obbject on middle but map be draggable. Then I can click on the object and show the address.

Any help please ...

1 Answers1

0

Check out my own answer here on a similar question

Additionally, I also have set the current location as a marker to be on the center of map. So your issue of marker being at the center of screen is also resolved.

You can create an infoWindow and open it on click listener of the marker. Like this,

google.maps.event.addListener(someMarker, 'click', function() {
   infowindow.setContent('_Place Address_');
   infowindow.open(map, someMarker);
});
Community
  • 1
  • 1
Saurabh Gokhale
  • 53,625
  • 36
  • 139
  • 164