javascript - How to create an empty google map with only street names -


i working on geolocation application in want populate google map own (local) data. there lot of objects on map already, plus own markers makes busy , confusing user. wonder how can start empty map names of places. have searched can't find configuration on google map makes empty. appreciate suggestions.

you can use styled maps control kinds of features displayed on map build javascript maps api.

start experimenting styled maps wizard until effect want, use show json button data object can use styled maps api.

for example, used wizard turn off all features , turn on roads/labels. resulting data:

[   {     "stylers": [       { "visibility": "off" }     ]   },{     "featuretype": "road",     "elementtype": "labels",     "stylers": [       { "visibility": "on" }     ]   } ] 

you can copy code simple styled map example.

here's fiddle above styles can experiment further.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -