Displaying 6 results from an estimated 6 matches for "addmark".
Did you mean:
addamark
2009 Jan 08
20
Mapstraction V2 Architecture Demo
Hi all,
I''ve been fiddling with some mapstraction architecture ideas and before I
lose my mind (caller, calleee, apply, arguments, pop!), I wanted to share my
progress.
Please see here for details:
http://www.thegecko.org/mapstractionv2/
I''m by no means a javascript guru, so I would appreciate any feedback you
may have :)
Kind regards,
Rob
-------------- next part
2010 Apr 30
6
addListener
...oogle'');
map.setCenterAndZoom(new mxn.LatLonPoint(45.559242,-122.636467),
15);
marker = new mxn.Marker(new mxn.LatLonPoint(45.559242,
-122.636467));
marker.addData({icon:
"http://mapscripting.com/examples/mashups/richter-high.png"});
map.addMarker(marker);
marker.addListener(''click'', test());
However I keep getting the error: addListener is not defined. Any help
appreciated.
Regards,
Paul Owens
HotelConnect Ltd is a company registered in England and Wales with company number 2875544.VAT registrati...
2009 May 24
9
Mapstraction Sandbox & V2 push
Greetings from the day of rest after a week of Where. It was a great
time out here - and there is a lot of interest in the community around
Mapstraction.
The new Sandbox (http://mapstraction.appspot.com) made surprisingly
quick rounds and lots of kudos. It will be a great place to demo
Mapstraction and encourage developers.
We had a very good discussion about Mapstraction at WhereCamp. Pamela
2012 Mar 30
1
Popups not appearing for leaflet using mxn 2.0.18
Good day,
I''m trying out the new Leaflet provider using the 2.0.18 release.
Unfortunately, I haven''t been able to get a marker bubble (popup) to
appear after clicking on the marker. I think my use of Mapstraction is
correct as I see a popup appear for the googlev3, ovi, and openlayers
providers when I switch with no other changes to my code.
Is there a step I''m
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...+ }
+
+ map.loadMap(match[1]);
},
addTileLayer: function(tile_url, opacity, copyright_text,
min_zoom, max_zoom) {
@@ -220,13 +231,52 @@
var map = this.maps[this.api];
// TODO: Add provider code
- }
+ },
+ addMarker: function(marker, old) {
+ var map = this.maps[this.api];
+ var pin = marker.toProprietary(this.api);
+ // TODO: Add provider code
+ // map.addOverlay(pin);
+ return pin;
+ },
+
+ removeMarker: function(marker) {
+ va...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...map = this.maps[this.api];
- // TODO: Add provider code
+ if (on) {
+ map.enableDragging();
+ } else {
+ map.disableDragging();
+ }
},
setCenterAndZoom: function(point, zoom) {
@@ -61,22 +85,17 @@
addMarker: function(marker, old) {
var map = this.maps[this.api];
var pin = marker.toProprietary(this.api);
-
- // TODO: Add provider code
-
+ map.addOverlay(pin);
return pin;
},
removeMarker: function(marker) {
var...