Tag Info

Hot answers tagged

5

Have you considered using a hosted solution? These days I only roll my own, when one of the cloud based services like ArcGIS Online or Mango don't have what I need out of the box. The spec you are describing is their bread and butter. Personally I find that Mango has the best mobile client. Their pricing is also sharper than ArcGIS Online for smaller ...


4

Here's a post on the MangoMap blog with an overview of the top 3 free map icons sets. I particularly like the Map Icon Designer, shown below.


4

The Maki POI icon set (from the crew at MapBox) is pretty great, in my opinion. Creative Commons license, and hosted on GitHub so that anybody can contribute new icons to it.


3

Google maps is not a WMS service, and the terms of use of Google Maps itself prevent legal usage of it in a server side application, unless of course you have some sort of commercial contract with Google that entitles you to use their tiles outside of a browser.


2

One of the things you can do is request the geometry from cartoDB as in a geoJSON format as part of your SQL query: SELECT *,ST_ASGEOJSON(the_geom) AS geometry FROM your_table Google can take the geoJSON and convert it to polylines and polygons each time you mouse over a feature. Here's an example I've done with a polyline. You could do the same thing ...


1

One thing you can do if you have base layers with different resolutions is to detect for the layer in the changebaselayer callback and then reset the map's resolutions array, and redraw the panzoombar control, so it can only zoom to the new base layer's resolutions. map.events.register("changebaselayer", this, function (obj) { if (obj.layer.name == ...


1

Sure you can. Its as easy as loading the map. See this example: http://dev.openlayers.org/examples/osm-google.html Code: (Place this after the OpenLayers map) var gmap = new OpenLayers.Layer.Google("Google Streets"); map.addLayer(gmap); and load the folowing javascript: <script ...


1

You shouldn't need to re-implement the wheel, there are lots of geospatial libraries out there. As you've noticed, PostGIS includes a buffer function, unfortunately MySQL has sub-standard spatial support and therefore doesn't include one. If possible you may wish to consider switching to PostGIS if spatial functionality is important to you. There are ...


1

I had a similar problem and used a kml parser (geoxml3) to locally parse a kml. I later ended up storing each kml file as a database table and looping through the records to plot a polygon. Loading the kml from a server was the slowest of all.


1

This is your issue: var flightPlanCoordinates = [ new google.maps.LatLng('<?php echo implode("','", $roads); ?>') ]; It does not create an array of LatLng. It creates an Array with one Invalid LatLng with in since it's expecting a latitude and a longitude and your giving it many latitudes and longitudes? If you have more ...


1

1) the current google maps terms and license agreement is not friendly towards openlayers version 3. google prefers if you access their map tiles through their own google maps api so expect to get blocked if you release a live site that uses openlayers. 2) it is possible...see this link for an example proof of concept ...


1

There doesn't seem to be a Google Maps example on the OL Examples page yet, but there is a Bing Maps one if you want to start with that: http://openlayers.org/en/master/examples/bing-maps.html The only difference is probably going to be changing the source section to be google specific. source: new ol.source.BingMaps({ key: ...


1

You can generate a mesh of, for example, 0.001 degrees on each side, and make a reverse geocoding for every point. The google geocoder service would answer with N possible addresses. Each reverse geocoding request would have the following structure var latlng = new google.maps.LatLng(lat, lng); geocoder.geocode({'latLng': latlng}, function(results, ...



Only top voted, non community-wiki answers of a minimum length are eligible