Displaying 7 results from an estimated 7 matches for "toproprietary".
Did you mean:
proprietary
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...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 map = this.maps[this.api];
-
- // TODO: Add provider code
+ map.removeOverlay(marker.proprietary_mark...
2010 Aug 30
4
Implementation of openBubble for openlayers
Hello,
I''m back with another problem, the method Marker.openBubble isn''t
implemented yet. I tried to hack a solution but I encountered some problems.
When the popup is created in the toProprietary method from Marker in
mxn.openlayers.core.js, I keep a reference on it with a this.infoPopup =
popup.
Later in the openBubble method, I do :
this.map.addPopup(this.infoPopup);
this.infoPopup.show();
Which basically works but :
* If that openBubble i...
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...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) {
+ var map = this.maps[this.api];
+ // TODO: Add provider code
+
+ },
+
+ removeAllMarkers: fun...
2009 Sep 20
0
r30 committed - jslint now passing for google and googlev3
...){
+ this.addLargeControls();
+ } else {
+ this.addSmallControls();
+ }
}
if (args.scale) {
@@ -184,7 +186,7 @@
setCenter: function(point, options) {
var map = this.maps[this.api];
var pt = point.toProprietary(this.api);
- if(options && options[''pan'']) {
+ if(options && options.pan) {
map.panTo(pt);
}
else {
@@ -357,7 +359,7 @@
mousePosition: function(element) {
var locDisp = document.getElementById(element);
- if (locDisp != null) {
+ if (locDis...
2009 Nov 06
0
r54 committed - ...
...http://code.google.com/p/mapstraction/source/detail?r=54
Modified:
/trunk/source/mxn.googlev3.core.js
=======================================
--- /trunk/source/mxn.googlev3.core.js Fri Oct 9 07:48:43 2009
+++ /trunk/source/mxn.googlev3.core.js Fri Nov 6 07:21:27 2009
@@ -299,10 +299,41 @@
toProprietary: function() {
var options = {};
+
+ // do we have an Anchor?
+ var ax = 0; // anchor x
+ var ay = 0; // anchor y
+
+ if (this.iconAnchor) {
+ ax = this.iconAnchor[0];
+ ay = this.iconAnchor[1];
+ }
+...
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
...tyle.SMALL}
};
@@ -85,12 +106,6 @@
this.addControlsArgs.map_type = true;
},
- dragging: function(on) {
- var map = this.maps[this.api];
-
- // TODO: Add provider code
- },
-
setCenterAndZoom: function(point, zoom) {
var map = this.maps[this.api];
var pt = point.toProprietary(this.api);
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