Displaying 3 results from an estimated 3 matches for "fromproprietary".
2010 Jan 13
8
How to use getCenter
Hi,
I am starting to use Mapstraction with the openlayers provider, and I am not
sure how to retrieve the current center of a map in a cross-provider way.
i.e. currently when calling map.getCenter(), the result returned is the
openlayers internal one, not the long/lat used when calling setCenter().
Is that the expected behaviour?
Regards,
Philippe
-------------- next part --------------
An
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...ageOverlay: function(id, src, opacity, west, south, east,
north, oContext) {
@@ -237,11 +248,12 @@
LatLonPoint: {
toProprietary: function() {
- return new CM.LatLng(this.lat,this.lon);
+ var cll = new CM.LatLng(this.lat,this.lon);
+ return cll;
},
- fromProprietary: function(googlePoint) {
- // TODO: Add provider code
+ fromProprietary: function(point) {
+ return new mxn.LatLonPoint(point.lat(),point.lng());
}
},
@@ -249,19 +261,52 @@
Marker: {
toProprietary: function() {
- // TODO: Add provid...
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...removePolyline: function(polyline) {
+ var map = this.maps[this.api];
+ // TODO: Add provider code
+ }
+
+
},
LatLonPoint: {
toProprietary: function() {
// TODO: Add provider code
+ return {};
},
fromProprietary: function(googlePoint) {
@@ -239,6 +289,7 @@
toProprietary: function() {
// TODO: Add provider code
+ return {};
},
openBubble: function() {
@@ -262,6 +313,7 @@
Polyline: {
toProprietary: function() {
+ return {};...