I want to develop a map chart but I need multiple markers on each state.
I would like to display sales by state and income by state, so I want to display two markers and two values on each state.
I searched a lot in google, but it was showing multiple markers in google maps, only but my requirements are different.
If anyone can help with that, it will very helpful.
see my apex-plugin on apex-plugin.com. this places multiple markers on a google map.:
www.apex-plugin.com
to see how it works check my demo page right here:
MultiMarker Demo
Maybe this helps?
Related
I've seen the same question asked before but they all seemed specific to their situation and I didn't really understand as I am new to JS.
I have a google map api already rendered. I have created 3 separate arrays, each with a long list of locations for google map markers. All the markers are currently showing on the map.
I have created 3 separate buttons and I would like each button to show/hide the markers in it's corresponding array.
I really appreciate any help given, I have been searching for a week on how to do it and am sure its fairly simple but being new I'm just not understanding.
when you create marker an object is returned, store this array of markers on a global var.
In the event of the button0 markers[0].setMap(map);
In the event of the button1 markers[1].setMap(map);
The main goal is for me to display a US map in google maps, highlighting all states. States should be plain colored, no markers, no city names, etc.. just plain colored, only showing the borders of each state. Then when clicking any state, a popup window will appear containing various info about the state ( ex. population, etc..) The pop up window is the same as the pop up window you see when clicking a marker.
I know some basic google maps api stuff, but I could use some help. Code samples would be awesome! Thanks.
Do you actually need geo info? Google maps probably overcomplicates it if you don't. You might find it easier to use some simple javascript library that provides you with just the shapes.
Have a look at this for a start: newsignature.github.io/us-map/
stateSpecificStyles lets you customise the initial color of each state
I'm developing an application that loads lots of markers in OpenLayers 3.
However, I would like to dynamically display and load markers while user is panning at a certain zoom level.
Could someone provide me an example, or directions to do that?
For instance, I would like to first create an example that drops a marker where user has clicked on the map.
So, with this information, I will be able to handle the rest and post my solution here.
I've managed to create a way for setting this up:
http://weebah.com/weebah_examples/click_to_create.html
When you fully setup your Custom infowindow, you can set whatever content you wanted.
However, I am talking about the businesses that google map v3 initially added. How do I go about adjust the default infowindows of varies businesses? Like add pictures, stars OR HIDE them all?
Any examples would be greatly appreciated!
EDIT:
First Example showing that it can be adjusted
Booking.com:
Second Example to hide all of them:
Redfin.com
How to adjust for google map defaults?
Please help me out! How do I do both? Hide & add pictures, stars etc to Default infowindow of google map v3?
A good way to compare would be to test the same places on those 3 map instances.
1st example: This is the default look. It can't be modified.
2nd example: You can use the styles to remove all or certain POI types on the map. See the documentation here. Also check the Styled Maps Wizard to help you build your styles.
3rd example: This is also the default look. If you need something else, then you will have to hide these POI (see above), create your own markers for the places you are interested in and create a custom InfoWindow.
Hope this helps.
So I have a probably not so unique scenario. The simplest way to explain it is a google map with all 50 US states, each state will have two markers. The markers are both driven by the same lat/long value. The problem Im having is that the markers are rendering ontop of one another. I somehow need to have them render next to one another or offset so that I can see both. The problem is how do I get it to not overlap into another state.
I saw some really neat "spider" functionality where it renders one marker and then if you click on it the others fan out, but the website was in another language.
I am going to try and use the following library.
https://github.com/jawj/OverlappingMarkerSpiderfier
The problem with the above implementation is that I am using a combination of KML and google maps client-side. I dont see a way to implement that for the kml markers
The Overlapping Marker Spiderfier project on GitHub will probably accomplish what you need.
Otherwise you can play around with the Marker's icon property. The icon can accept a Symbol which has and anchor that can be shifted from the default location (0,0).
Symbol documentation: https://developers.google.com/maps/documentation/javascript/reference#Symbol