I'm currently working on a mapping project using the Google Maps JavaScript API.
But my application will be much more advanced then showing a single map and will eventually show multiple map "views" as well as options to manipulate the map using forms on the page.
I have used a couple different HTML 5 JavaScript frameworks such as Backbone.js, Angular.js as well as Ember.js for other projects but nothing has worked well with Google Maps.
I'm wondering if anyone would recommend using a particular JavaScript framework for working with Google Maps JavaScript v3 API.
Preferably something with an active plugin/module for Google Maps would work best. I have created my own special views in Backbone for Google Maps but it does not work as "well" as I want it to.
If you have a suggestion to use a different mapping API, other than GMaps, I would love to hear about it too.
There is also an ember-leaflet proyect, seems interesting but I did not taste it yet.
https://github.com/gabesmed/ember-leaflet
http://gabesmed.github.io/ember-leaflet/
Good luck
Turns out there are two really great approaches.
EmberJS + Leaflet http://gabesmed.github.io/ember-leaflet/
AngularJS + Leaflet http://tombatossals.github.io/angular-leaflet-directive/#!/
AngularJS + Google Maps http://nlaplante.github.io/angular-google-maps/#!/usage
I have decided to either use AngularJS or EmberJS with Leaflet, as the Leaflet API is much more robust than the Google Maps API. (imo)
Not a Google maps solution, but you said you'd love to hear about other possible mapping solutions. Well, ArcGIS has a Javascript API https://developers.arcgis.com/en/javascript/ that is directly coupled with the Dojo javascript framework, though they do have a light version of the API as well that still runs off a stripped down version of dojo, but is more aimed at allowing integration with other JS frameworks.
May or may not meet what you're wanting, but it's an option anyway and figured I'd pass it along. They have a number of samples and such so I'd suggest you go there and take a look rather than me trying to explain.
I second the ember-leaflet suggestion. You can use any map provider you want, through leaflet.
Related
Google translate provides a very simple solution of adding a dropdown to translate an entire page:
https://www.w3schools.com/howto/howto_google_translate.asp
It looks like Bing used to provide a similar tool before it was merged into Microsoft's cloud service. Is this possible to do anymore with Microsoft? I only see them providing REST endpoints, would it be much more difficult to achieve the same thing?
I need to use Google Maps API in two way:
To store coordinates of a marker in database
To display objects stored in database on map
I was suggested to use gmaps.js for both. Googling I found this library that can be used as well for both purposes. I am familiar with html, css and PHP but I have minor experience with JS so I would love to avoid it. The library, if I got it correctly, generates JS code. So it would be a lot more easier to use library.
My question is about quality of both options. Which option would produce higher efficiency? The map is supposed to display a lot of markers from database.
I am sorry if this is silly question but I want to know for sure that I have chosen right tool before getting my hands dirty.
I'm sure this question will be downvoted, but...
Is Google Maps MarkerManager still "a thing"? On some of the Google documentation I see it mentioned, and in other parts of I do not.
All of the information I can find on this library seems very outdated. It also causes an error if this library is included on the page before the Google Maps API is loaded. Is there a newer recommended method for handling lots of markers the way this library does?
2 years Ago, when I was working on map based project, we used markerclusterer library. It might suit your needs. Here's a simple example
some more examples
I am new to angular and working on angular based project. Now I have to implement advanced maps functionality list and displaying it like clustering, routing and road routing , paths, directions, polygons, events, drawing on maps, info widows, markers, etc...
I made some search and found that I can use "leaflet" openstreet map but I need to start with Google Maps so I searched and found the following options:
1) I toke a look over ui-map https://github.com/angular-ui/ui-map but I am worry since I am not sure if this project is still supported and will cover all the features needed
2) Angular Google Maps https://github.com/nlaplante/angular-google-maps very good angularish effort but also worry about the implemented features , may be I can implement external service for not supported features like paths and directions
3) ng-newsletter
http://www.ng-newsletter.com/posts/angular-ui-utils.html
*there are some other solutions like ....
a) using one of ways provided here
http://wbyoko.co/angularjs/angularjs-google-maps-components.html
b) Implement my directive and use it but worry about how to pass map variable among services
I need advice on which strategy and technology to use beside how to organize my map code among directives and services ?
Option 1 seems the best bet out here. Angular UI is widely used library and is well supported.
Check this link http://ngmodules.org/tags/maps for a comparison.
Can anyone recomend a good javascript lib for working with Google Maps or Live Maps(virtualearth )?
Is jQuery og Prototype something to consider?
I think I remember that asp.net ajax had some controls and hooks for working with virtual earth back in the day, but cant seem to find it any more.
Cheers
jQuery and Prototype are "general" JS frameworks (for lack of a better word), mostly aimed at manipulating the DOM/handling events etc. You want one of the Map APIs:
Google Maps API
Yahoo Maps JS API
Virtual Earth SDK
I've used both jQuery and Prototype. They both have their ups and downs, however I recently switched from Prototype to jQuery and have really been enjoying it.
Here is a link to the Google jQuery plugin.
Google's own Javascript Client Library can be used to interact with various google services, including maps.
I could have sworn this was already available. Looks like it isn't still. The Dojo toolkit might be the first to implement it, though. Look for developments here.