123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- mxn.register('{{api_id}}', {
- Mapstraction: {
- init: function(element, api) {
- var me = this;
-
- },
- applyOptions: function(){
- var map = this.maps[this.api];
-
- },
- resizeTo: function(width, height){
-
- },
- addControls: function( args ) {
- var map = this.maps[this.api];
-
- },
- addSmallControls: function() {
- var map = this.maps[this.api];
-
- },
- addLargeControls: function() {
- var map = this.maps[this.api];
-
- },
- addMapTypeControls: function() {
- var map = this.maps[this.api];
-
- },
- setCenterAndZoom: function(point, zoom) {
- var map = this.maps[this.api];
- var pt = point.toProprietary(this.api);
-
- },
- addMarker: function(marker, old) {
- var map = this.maps[this.api];
- var pin = marker.toProprietary(this.api);
-
- return pin;
- },
- removeMarker: function(marker) {
- var map = this.maps[this.api];
-
- },
- removeAllMarkers: function() {
- var map = this.maps[this.api];
-
- },
- declutterMarkers: function(opts) {
- var map = this.maps[this.api];
-
- },
- addPolyline: function(polyline, old) {
- var map = this.maps[this.api];
- var pl = polyline.toProprietary(this.api);
-
- return pl;
- },
- removePolyline: function(polyline) {
- var map = this.maps[this.api];
-
- },
- getCenter: function() {
- var point;
- var map = this.maps[this.api];
-
- return point;
- },
- setCenter: function(point, options) {
- var map = this.maps[this.api];
- var pt = point.toProprietary(this.api);
- if(options && options.pan) {
-
- }
- else {
-
- }
- },
- setZoom: function(zoom) {
- var map = this.maps[this.api];
-
- },
- getZoom: function() {
- var map = this.maps[this.api];
- var zoom;
-
- return zoom;
- },
- getZoomLevelForBoundingBox: function( bbox ) {
- var map = this.maps[this.api];
-
- var ne = bbox.getNorthEast();
- var sw = bbox.getSouthWest();
- var zoom;
-
- return zoom;
- },
- setMapType: function(type) {
- var map = this.maps[this.api];
- switch(type) {
- case mxn.Mapstraction.ROAD:
-
- break;
- case mxn.Mapstraction.SATELLITE:
-
- break;
- case mxn.Mapstraction.HYBRID:
-
- break;
- default:
-
- }
- },
- getMapType: function() {
- var map = this.maps[this.api];
-
-
-
-
- },
- getBounds: function () {
- var map = this.maps[this.api];
-
-
- },
- setBounds: function(bounds){
- var map = this.maps[this.api];
- var sw = bounds.getSouthWest();
- var ne = bounds.getNorthEast();
-
- },
- addImageOverlay: function(id, src, opacity, west, south, east, north, oContext) {
- var map = this.maps[this.api];
-
- },
- setImagePosition: function(id, oContext) {
- var map = this.maps[this.api];
- var topLeftPoint; var bottomRightPoint;
-
-
-
-
-
- },
- addOverlay: function(url, autoCenterAndZoom) {
- var map = this.maps[this.api];
-
- },
- addTileLayer: function(tile_url, opacity, copyright_text, min_zoom, max_zoom) {
- var map = this.maps[this.api];
-
- },
- toggleTileLayer: function(tile_url) {
- var map = this.maps[this.api];
-
- },
- getPixelRatio: function() {
- var map = this.maps[this.api];
-
- },
- mousePosition: function(element) {
- var map = this.maps[this.api];
-
- }
- },
- LatLonPoint: {
- toProprietary: function() {
-
- },
- fromProprietary: function(point) {
-
- }
- },
- Marker: {
- toProprietary: function() {
-
- },
- openBubble: function() {
-
- },
- hide: function() {
-
- },
- show: function() {
-
- },
- update: function() {
-
- }
- },
- Polyline: {
- toProprietary: function() {
-
- },
- show: function() {
-
- },
- hide: function() {
-
- }
- }
- });
|