Tag Info

New answers tagged

0

In the end that's what I did - ripped some code out. Got the coordinates that I needed and then had to play around with the json job done. I got the javascript from here. http://blog.sallarp.com/geojson-google-maps-editor.html


0

As I mentioned in the Question that I'm using same way to add layers on other pages and the code is working fine there. So, I started debugging my page line by line and found that I had added Jquery twice in the page. Removing one link of Jquery resolved above mentioned problem.


1

It looks like the method described on this blog post still works: Plan Your Route Head over to Google Maps, select the cycle option and start planning a route. Once you are happy with the route, copy the page’s URL link in the address bar to your clipboard. Convert to gpx Open up a new tab and goto ...


0

I do not believe that matplotlib natively supports Spherical Mercator. So you will need to convert your cords from that to the matplotlib projection. Set projection to 'merc'. Pyproj should help you with the transform from google. Something like below. project = partial( pyproj.transform, pyproj.Proj(init='epsg:4326'), ...


1

Lat/lng values need to be switched to 44.3140135, 0.265749 you should be able to copy paste this code to see your marker on a Google map with your marker bubble with the info TIME:2010-05-28 at 16:02:44 LOCATION:Lat 0.265749 Lng 44.3140135 Elevation 93m <!DOCTYPE html> <html> <head> <meta name="viewport" ...


2

What you're trying to do is called Reverse Geocoding, for which there is a sample in the documentation here: https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse That example is a simple one, which is easy to derive the main concepts from. However it gets place information from a coordinate which is typed in by the user, ...


0

it also works without needing GEvent google.maps.event.addListenerOnce(openlayersMap.baseLayer.mapObject, 'tilesloaded', function(){ alert("Map Loaded!"); } );


0

All but one of the point in polygon libraries / routines that I've found fail on a polygon that includes the date line. The all seem to use ray casting or other algorithms that wrap the wrong way or just simply don't work. I believe that the routine in OGR works properly but it's somewhat complex to implement. ...


7

You need to know the coordinates of at least one point in lat/lon degrees. If you don't have any surveying points, you might take coordinates from a GPS unit if the point is visible. Using QGIS, you could create the other points of the polygon with the Azimuth and Distance Plugin. Take care to convert the degree-minute bearings into decimal degrees. EDIT ...


1

here.com's API can, supposedly, give you up to 100 addresses within a circle. This is how I create the URL for the API call function makeURL ( point, radius) { return 'http://reverse.geocoder.cit.api.here.com/6.2/reversegeocode.json' + '?app_id='+config.Here.App_Id + '&app_code='+config.Here.App_Code + ...


3

Your Gauss-Krueger projection uses +datum=potsdam. Up to 2012, this was hard coded in proj4 to a very unprecise value using a 3-parameter-transformation. You find more exact values for 7-parameter transformations in this topic: http://forum.openstreetmap.org/viewtopic.php?id=12723 There is an even better ntv2-grid transformation available here (take the ...


1

It will never work. You are using code for the deprecated Google Maps API v2. Trying what's happened with the sample, I get a message like below Control is no longer supported in the Google Maps Javascript API v2. Please visit developers.google.com/maps/documentation/javascript/v2/v2tov3 to migrate your application to v3. I didn't dive into the ...


1

Good question. You can achieve this in an ArcGIS Web Map by providing a custom value in the popup window. I added a sample New Zealand schools layer by searching for "school" within ArcGIS Online. This sample dataset contains a field called ADDRESS which lists the school's address. Next choose > Configure Popup: Choose a Custom Attribute Display, and ...


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



Top 50 recent answers are included