I would like to implement in a Windows Phone 8 application, a map application, but using only custom roads, without any existing roads.
Examples of this being useful : private areas roads, or special vehicles roads like bicycles and more.
Do you know how i could implement something like that ?
You can set the Style property to a MapStlye of None:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.controls.maps.mapstyle.aspx
This will hide the base road maps. You can then overlay your own road data in a couple of different ways. One method is to simply create polylines for the roads and pushpins/MapIcon for the labels.
Another option is to create a tile layer with your road data on it and load that up.
Related
we want to control Google Maps on Android/IOS devices via urls, and we've looked through the docs: https://developers.google.com/maps/documentation/urls/android-intents#display_a_map
These are the functions we need but cannot find in the document:
1. Color Scheme(automatic, day, night)
2. Map type(default, satelite, terrain), Map detail(transist, traffic, bicycling, 3D, Street View)
3. Route options (avoid highways, avoid tolls, avoid ferries)
4. Search along route
If it applies to your use case/implementation, you might want to consider using Maps SDK for Android. This will generally handle styled maps (e.g color scheme, etc.), map types (e.g terrain, satellite, etc), map details like Street View and Traffic Layers.
However for the route options, you need to use a separate web service - Directions API.
Hope this helps!
I have created several Fusion table maps, which all work great, but in one of the maps, I want to create a dual layer functionality, so my POLYGON is viewed from the beginning, and when you zoom in, you instead have the functionality of LINESTRINGS. From what I understood, it's not possible to have two active dual layers simultaneously, and having functioning lightboxes for them.
How can I make something like this work?
Here is the example: Parkeringszoner i København
You will need to use the FusionTablesLayer in the Google Maps Javascript API v3
You can have multiple (up to 5) FusionTablesLayers on a single map and write code to change the one being displayed based on the zoom level of the map.
For a new housing project, a complete area will be developed on a blank piece of land. We would like to create a nice interactive chart with all the different sub housing projects. Currently we have a static map available, but want to turn this into an interactive map.
Currently we have found zeemaps.com to add pointers to the map, highlight new building area's and add additional information. One thing is lagging, is the ability to create roads/parks in the map.
Are there any tools out there available where I can 'draw' the new to be developed area into a google-like map.
Another alternative is to create a set of custom map tiles that replace or overlay the standard map tiles for your development area, see
https://developers.google.com/maps/documentation/javascript/maptypes#CustomMapTypes
You might even be able to create custom streetview images to create a virtual drive though of the development and the inside of the buildings, see https://developers.google.com/maps/documentation/javascript/streetview#CustomStreetView
Is Google Map Maker https://www.google.co.uk/mapmaker enabled for your area?
This would allow you to add all the roads, buildings parks in your development.
Note: You would need to check the terms of use to ensure that adding planned but not yet built developments was permitted, but I do see that you can set the construction status of a road to Planned so I assume it is OK.
You can also do similar editing with Open Street map https://www.openstreetmap.org
I've developed a HTML application that displays a map. This map has many fixed markers (they do not change in time).
Due to that:
I want to speed up the application
I want to hide the marker position from malicious users (so they can't use the information I've gathered for they're own porpose)
I want to convert the markers to a tile layer.
I've been googleing without success how to do this. Anyone has faced this problem and has a nice easy solution?
Thanks!
If the markers never change, there is a great solution:
Mapbox.
You can create your map with the markers, then the mapbox servors will send the tiles with the markers.
You can use a quadkey. It'similar to a quadtree. You can download my PHP class hilbert-curve # phpclasses.org. It also uses a quadkey.
The question is pretty descriptive.
I am working on a website that provides locations for filming.
All the data in the site is currently stored in a MySQL database including geocode data for google maps.
I need to show polygon areas for the different london boroughs that has locations.
I have all the data as kml files, idealy i would like to store this in the MySQL database.
I have had success using fusion tables to display this data, but it seems silly to me to have to have this data duplicated on google just to use a fusion map layer, can i simply use a kml layer to render this data rather than having to create a fusion table and rendering it from that?
If so, is there a resource someone could point me to for more information?
UPDATE:
Thank you for the responses so far, i thought i would update the question with a little more info .
I eventually want to have all the areas displayed at the same time on my map and then when an area is clicked on ideally it would take you to another page on the website showing locations for that specific area.
I had initially tried using KML layers but i was getting errors saying my KML was invalid.
The KML was initially stored in a field in my database table, i think probably the errors were due to me not understanding exactly how google read in the KML data.
Using polygons would be far simpler to implement as i can get this data via JSON and then render the polygons from that.
I know now its not possible to have info windows with polygons, but i would just prefer to jump directly to another website page with info for that particular area using a click handler rather than show an info window.
Alternatively as suggested showing a tool-tip with a brief description of the area and a link to the page would be better, how the tooltip itself, is it possible to render on top the map?
I am slightly worried that I will reach the layer limit for the KML.
Is it possible to have multiple polygons rendered with KML on one layer, or do i need a separate layer for each clickable area?
The Google Maps API provides a pretty straightforward method to draw polygons.
Basic Example:
var polygon = new google.maps.Polygon({
map: your_google_map_instance,
paths: array_of_latlng_points,
fillColor: "#336699",
fillOpacity: .5,
})
EDIT: For this approach, you would need to parse your KML files (sorry, must've missed that when I first read it). You can import the KML files to a KML layer
You can overlay Polygons using KmlLayer, FusionTablesLayer (as you know), or native google.maps.Polygon objects.
KmlLayer and FusionTablesLayer render them as tiles, so for lots of Polygons (if you only need click events) will be more efficient. There are limitations on the number of KmlLayers that can be displayed on the map at one time and on FusionTablesLayer (but those don't seem to be causing you problems).
There are also third party parsers available for KML (geoxml3, geoxml-v3) which will take your KML and render it as native google.maps.Polygon objects. For lots of Polygons, this will be less efficient than tile based rendering, but it does allow mouseover/mouseout, and changing the properties of the Polygons dynamically.
You could also try data layers what have lots of events so you can display tooltips, info window, status text on various mouse events.
See samples in documentation:
https://developers.google.com/maps/documentation/javascript/datalayer
If you have many polygons (where the actual value of many depends on multiple factors, can be anywhere between 100 and 1,000) the best is to use a built in layer type. The fastest are the ones rendered on server, e.g. kml layer because this doesn't create hundreds of DOM elements in browser but still exposes click events so infoboxes can be displayed for each item.
In the worst case you can implement your own rendering with an image map, obviously by using an existing library like mapnik.
https://developers.google.com/maps/documentation/javascript/maptypes#ImageMapTypes