Questions tagged [mapstraction]

Mapstraction is a common API that abstracts various JavaScript mapping APIs.

Mapstraction is a library that provides a common API for various JavaScript mapping APIs to enable switching from one to another as smoothly as possible. Developers can code their applications once and then easily switch mapping provider based on project needs, terms and conditions, and new functionality.

27 questions
2
votes
2 answers

To use Mapstraction or Google maps api V3?

I am new to mapping and have gone through the V3 API tutorial and just heard about mapstraction. I wanted to know, which would be better to learn, considering that V3 is a complete write up of the google maps api? I understand that mapstraction…
RubyGladiator
  • 1,765
  • 3
  • 18
  • 27
2
votes
1 answer

Mapstraction: Changing an Icon's image URL after it has been added?

I am trying to use marker.setIcon() to change a markers image. However it appears that although this changes the marker.iconUrl attribute the icon itself is using marker.proprietary_marker.$.icon.image to display the markers image - so the markers…
user3378
2
votes
0 answers

Display a text below marker on map using mapstraction

Is there any way to display a text below marker on map using mapstraction? I have tried marker.setLabel("Test"); its not working am using mxn-2.0.18 version Regards, Kiran V
user1955010
  • 111
  • 1
  • 6
1
vote
1 answer

comparison between openlayers.org and mapstraction.com

I just handed new GIS project and given two choices for map solution. http://mapstraction.com http://openlayers.org Now i know only google maps and dont have any idea about the above two. My goal is to provide price effective solution (thats main)…
user867198
  • 1,588
  • 3
  • 16
  • 31
1
vote
2 answers

One to Many relationship with MapStruct in spring boot

I have a loop when I try to get a list of students. I used this method https://stackoverflow.com/a/57311104/12350684 and it works, but only for one field specialty. I tried to add another field faculty, but I got stackoverflow error. How to solve…
Saliery
  • 155
  • 5
  • 16
1
vote
0 answers

mapstraction.removeMarker() function not working properly, it didn't remove marker on map

mapstraction.removeMarker didn't remove the marker on map It doesn't throws any exception.bt its not removed on mapstraction map. `mapstraction.removeMarker(markers[j]); //I will get all markers from mapstraction map, then i want to remove all …
veeru
  • 91
  • 1
  • 1
  • 5
1
vote
1 answer

Issue with mapstraction-rails JS

I am using mapstraction-rails plugin and it worked fine in the rails 2.3 version. When I upgraded the rails version to 3.2 I have started getting this error and map does not load TypeError: this.location.toProprietary is not a function …
1
vote
0 answers

Drag (move) a polygon using Mapstraction

I am struggling to find a way for dragging Polygon using Mapstraction. But con't find any example for this. How do drag polygon in this case? JS Code i have tryed // initialise the map with your choice of API var mapstraction = new…
Teja Maridu
  • 515
  • 1
  • 6
  • 14
1
vote
0 answers

Uncaught TypeError: Object [object Object] has no method 'addFeature'

I'm using Mapstraction and trying to draw polygon by invoking map.addFeature('polygon'); It shows the exception Uncaught TypeError: Object [object Object] has no method 'addFeature' Why am getting this exception? JS Code: var polyPoint; var…
Venkat Maridu
  • 892
  • 3
  • 22
  • 45
1
vote
1 answer

Mapstraction - draw polygon dynamically

In Mapstraction map need to draw a polygon which is editable. So i have tried a example. But polygon is editable mode while it's calling function href="javascript:mapstraction.activateEdition();" in example. I have tried to do that. Didn't get…
Venkat Maridu
  • 892
  • 3
  • 22
  • 45
1
vote
1 answer

Documentation on geting driving directions and calculating driving distance with Mapstraction

I'm trying to build an easy to use map system for the applications we develop at work. I started using Google Maps but I have to abandon that because of the lack of SSL support. While Google Maps API Premier has SSL support, we can't afford the 10k…
baudtack
  • 29,062
  • 9
  • 53
  • 61
1
vote
0 answers

Unable to register openlayers markers

I'm using Openlayers with Mapstraction v1 (mapstraction.js) but I'm unable to register the markers. Markers simply do not responds to the events. The function is here, any help will be much appreciated. //Add marker manager for specified zoom…
1
vote
1 answer

Google MAP V2 custom info bubble

is there any possibilities that we can add a custom info bubble like the one found in this website? http://app.bg. The website uses v3. However, I need to have a custom info bubble, I am using mapstraction and it is using the v2 api instead of v3.
1
vote
1 answer

Is it possible to use Mapstraction on an SSL website

I have carried out quite a bit of searching but it seems that you can't use Mapstraction on a SSL website. Has anyone been able to do this or would Leaflet/OpenLayers be the best option using a SSL tile provider. Thanks in advance
AnonGuy
  • 263
  • 3
  • 6
0
votes
1 answer

Mapstraction Google Geocode call returns error code 610

I have this js code where I am using the Mapstraction library to show GMap and use it's geocoder service via mapstraction as well. I have recently started getting error 610 whenever I try to issue the geocode service call. The http code is 200 ok…
DeeTewari
  • 183
  • 4
  • 12
1
2