I am new to the Bing maps. I am working on a territory map project.
I have a set of zip codes in my datatbase, I want the Zip codes to point on a map and also want to highlight that pointed region to form a territory.
I can point the zip codes but i am unable to draw a territory. Can any one help me on this, or can suggest me any links.
Related
I am trying to implement an interface like below with jQuery/JS and Laravel PHP framework. Could anyone help me to figure out the following questions I have?
How to make the markers draggable and on marker release get the
lat/lon?
How can I show the real path between point 1 & 2 (like the blue line. when I change the marker a new line will be drawn based on the shortest distance)?
If there are multiple markers connecting to each others like below, how can I get the optimise route?
For markers are connecting to each others.
This is the optimise route to visit all 4 markers (shortest path to visit)
Is there an open source project similar to this? (like jQuery calendar)
If you know any resources/plugins related to achieving something like this please comment below.
Draggable markers on Google Map - search for "Make a marker draggable":
https://developers.google.com/maps/documentation/javascript/markers
Planning route from point A to point B based on road map. You can use Directions API:
https://developers.google.com/maps/documentation/directions/intro
when I am searching any city or state or country in google map then I want the shading of that place as shown in figure.
can any one tell me how to do it ?
You can achieve this through KML layer for google maps. You can use the JS Bin link to achieve what you want. Currently I have implemented it only for the state level but you can also do it for country. The KML I used dont provide the data for the city level.
I am working on a (private) school project.
I am new to javascript and ran into a problem.
On this page, you will find the project: http://www.curlydutchman.nl/fishinglocations/
What I want is to make a search box in where I can search for the markers that are on the map.
I followed this with success (but removed them again): https://www.mapbox.com/mapbox.js/example/v1.0.0/filtering/
but the problem is that these markers are loaded in from a CSV file. It seems that I cannot edit these pins, and add them to my 'search by filter' list... Also, if I would copy the coordinates of my pins in to the CSV file, they would show up on a different location of the map.
So I believe that my only solution is to link a search field to the markers that are located in my Javascript.
Has anyone got an idea on what the solution to my problem might be?
You approach of searching for markers on the map using setFilter for the GeoJSON looks correct.
if I would copy the coordinations of my pins in to the CSV file, they would show up on a different location of the map.
This may be a function of coordinates being reversed.
GeoJSON = longitude, latitude
CSV = latitude, longitude (depends on the field names)
I want to show locations on google map based on the user search criteria i.e; if a user selects London, then all records from London should be displayed and if user enters his postcode then it should show the result within 25 miles of his postcode on the google map(All data will be coming from database php/mysql).
Now the question is What should I use? KML or google map api V3, As i want to give option to user to see brief info about the location, when he will mousehover that marker, and onClick of that marker I want to show the image of location and review count, and distance(calculated dynamically based on his postcode.), I also want to ceate custom markers. I have done some work on api V3 previously but wanted to know about KML. Does it supports my need? As according to my understanding KML is just a static file and can't give such dynamics.If so, can you please provide any sample and how to do that.
Thanks
Your understanding is correct, KML are just static files. You should be able to complete your requirements using combination of google maps api v3 methods like geocode, computeDistance etc.
I'm trying to create a tool that would take a list of zip codes as the input and would output a google map using the V3 of their API. The area on the map that corresponds to these zip codes needs to be outlined/color.
So far, I can draw shapes and distance circles, but have been unable to add zip coverage. A pointer to a tutorial or some sample code would be greatly appreciated!!!