EPSG:3857 coordinates system compatibility with Azure Maps - reactjs

Is EPSG:3857 coordinates system compatibility with Azure Maps? I am working on some project which require a geoJson to be loaded over the Azure maps but its not able to identify the coordinates correctly. The same geoJson is producing desired output on the other map provider like qGIS and Ordenance Survey.

EPSG:3857 is used by the rendering engine under the hood for the map, but like most other web map SDKs, the data input needs to be in EPSG:4326. Note that the specification for GeoJSON requires coordinates to be in EPSG:4326. Using other coordinates would make the GeoJSON file invalid and not inline with the specification.
That said, the math library in Azure Maps does provide calculations for converting coordinates between EPSG:3857 (web Mercator) and EPSG:4326 (WGS 84).
https://learn.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.math?view=azure-maps-typescript-latest#mercatorPixelsToPositions_Pixel____number_
https://learn.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.math?view=azure-maps-typescript-latest#mercatorPositionsToPixels_Position____number_

Related

RentFaster Scalable Map View connected to a database

I want to implement a custom map scaling connected to a database. Similar to the map view on the Rentfaster website. Also, the RentFaster website uses Google Maps, however, I will be implementing this on Bing Maps
Where would be the best place to start off? And what would is the technical name of such a custom feature?
From the screenshots, it looks like the feature you're looking for is pushpin clustering, and can be seen in the interactive SDK here: https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/clusteringmeanaverage
If you need hosting of your spatial data, check out the spatial data services module on the same page.

Is there any way to configure the pan/crop position when using Google App Engine Image API?

I'm using Google App Engine and using get_serving_url to get a URL which I can append on to perform resizes and cropping. I'd like to be able to crop a square out of an image, but to also control what part of the image the crop is coming from, like passing in x/y values/
I've seen an unofficial list of options. I tried using the x/y/z options but they did not work and I'm not sure how to get them to. I don't see why GAE Image API wouldn't be able to handle this.
From the oficial documentation of Images Python API there is no parameters to specify the x,y for the crop transformation when using get_serving_url() method.
But if you use the crop method of Image() class, it accepts 4 parameters:
crop(left_x, top_y, right_x, bottom_y)
Check the documentation here.
Notice that this is for Python API for App Engine Standard.

Custom tile server - how to create a layer using Mapnik and mod_tile using POSTGIS db

I have created a Ubuntu 14.04 tile server.
I loaded an OSM base map into the POSTGIS database and created a slippy-map using OpenLayers 3.9.
Then I loaded data of an overlay into the POSTGIS database and now I am trying to create a layer for it.
To create layers, the only solution with decent documentation seems to be Tilemill.
But to use Tilemill on my server I have to use "SSH connection forwarding", explained here.
I don't want to create a security leak into my server.
Are there any other options, with decent documentation, with which I can create custom layers for my map?
What I already 'know':
Create a simple map with Mapnik
Store shape files into the POSTGIS database
Use OpenLayers to display the layer
What I need to know:
I have a simple overlay (created with Mapnik):
This overlay has to be rendered into different tiles and have zoom levels, just like a OSM base map. I want to use this overlay and put it over an area on my OSM-tiled map.
What do I need to be able to create a layer that can be displayed with OpenLayers like:
url: '/overlay/{x}/{y}/{z}'?

Google Map API reverse geocoding from KML Layer

I have a KML Map Layer on google map which contains the Administrative boundaries of an administrative unit called "BLOCKS".Each Block has different ID. How can i get the ID of the Block if i get the Longitude and Latitude of the Location using my mobile?
That information is not currently accessible with KmlLayer. If you import your KML into Fusion Tables, you can query the table and determine which polygon a Lat/Lng point is in (using ST_INTERSECT with a small CIRCLE)
Another option would be to use a third party parser like geoxml3, but if your KML is complex, that will have performance issues.

Arcgis: How can I load an image as the map?

I am using Arcgis WPF, I am wondering if I could load an image as the map in my application? If it is possible, could you please tell me how to achieve it?
Thanks.
You can use ImageServer for the imagery files, and if the image is an .jpeg or .png and is non georeferenced, then you can use ArcMap to make it a map service (tiled map service or dynamic map service) and then use that map service in your code. You can go to ArcGIS online forums for WPF for more information
Is it satellite imagery or just an image? What API are you using?
If it is just an image, you can use a Graphics Layer and add the image as a graphic. With this approach, you can give it whatever lat/lon makes sense for your spatial reference.
If you have satellite imagery, you want to add it as a Raster layer (ArcGIS for Desktop/Engine) or a Tiled Map Service (WPF/Silverlight APIs). If you are using the WPF API's (and not ArcGIS Engine) then this requires access to ArcGIS Server to publish a map service.
I recommend reading through the API documentation as it is well documented.

Resources