Tag Info

New answers tagged

4

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 ...


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

If only this were true. There is no Bing option in WMS nor is Google there. Neither seem to have WMS access.


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 ...


0

I don't understand your question very well. If you are asking how to display a line with the Google Maps API i think that you should check the documentation about Polyline or check the code samples like this one.


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, ...


0

I think your problem is Chelsea is not a 'city' Chelsea is a neighborhood in the Borough of Manhattan, which is a 2nd level administrative division ( ~county) of New York City. Whether you are using Google or another geocoder, your geographic composition is: Locality (neighborhood): Chelsea, Manhattan County: New York City: New York State: New York Usual ...


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: ...


0

This is a tough one. Flightradar is a commercial product designed to track aircraft data via ADS-B signals. There is another company on the market, FlightAware, which grants access to its real-time data via an API. Sadly, it's a commercial product, so if you have no budget, your best chance is to use an existing flight path database. You can download an ...


0

This problem is known as Too many markers. See this article: https://developers.google.com/maps/articles/toomanymarkers for possible solutions. They list a few.


0

you could draw rectangles with points in the line drawn acting as a center for each rectangle something like what has been asked here


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.


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.


0

OSM has a very powerful API and the cost is $0.00 per year and $0.00 per year after that. Enterprise use is the same cost. Do you mean ESRI Javascript API? If not you missed ESRI.


0

Hi scud42 thanks for your valuable thought. Here is my code and still its not working. I am sure I am missing something, so any thoughts on the matter would be appreciated. var polylineHighlight = new google.maps.Polyline(); if (GLOBAL_CARTODB_LAYER_ON != null) { return; } cartodb.createLayer(map, { user_name: 'user-name', type: 'cartodb', ...


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 ...


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.


0

Try this: PROJCS[ "Popular Visualisation CRS / Mercator", GEOGCS[ "GCS_WGS_1984", DATUM[ "D_WGS_1984", SPHEROID[ "WGS_1984", 6378137.0, 298.257223563 ] ], PRIMEM[ "Greenwich", 0.0 ], UNIT[ ...


0

create your overlay offline(but dynamically) using the programming language of your choosing. it'll be a bit complex but the basic pseudo code would be: browser javascript send request url for overlay acquire gis bounds for tile server side gather all points and sort by their relevance create image(transparent) for each point: (least relevant first) draw ...


0

Thank you for the answer, in case that anyone else has the same problem be informed that i solved my problems using the geoPHP library!


0

To compute the buffer on the client side, you could use JSTS and its buffer function. See the example here. On the server side, it seems MySQL extension for spatial data also has a buffer function. If you need to compute high distance buffers, be aware the projection matters.


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 ...


2

I got the solution. If you want, just do the following... //Styles to switch off the roads var stylez = [{ "featureType" : "road", "stylers" : [{ "visibility" : "off" } ] } ]; //Satellite var ghyb = new OpenLayers.Layer.Google( "Google Hybrid", { ...


0

After testing the math against the known location parking lot image, I am pretty sure my guess is correct. I found distances between the type of lot in the map image vary in some parking lot code specifications that I located on Google. In a two-way traffic direction, with 60 degree parking stalls, requirements vary from 55 to 62 feet between the long ...


0

IMO the wms service used by OL cannot be changed in this detail. It will be more likely that you need to create your own basemap using TileMill or something else. But I am not an expert in OL / Gmaps



Top 50 recent answers are included