How to display multiple KML files on one map -


i'm trying display multiple historic shape boundaries on google map via google's api using js. have 1 kml file displayed correctly currently, i'd have op 100 of these displayed @ once, , have ability highlight particular one. here's how i'm loading 1 kml file now:

function loadkmllayer(src, map) {     var kmllayer = new google.maps.kmllayer(src, {     preserveviewport: false,     map: map   }); 

is there way display hundreds of these @ once? there limit how many can disaply? in advance

you can display 1 in each kmllayer, can't control them other hide/show them.

there limitation, @ point internal url request (which includes of individual kmllayer urls) exceeds limit, , none of them display. described in documentation:

there limit on number of kml layers can displayed on single google map. if exceed limit, none of layers display. limit based on total length of urls passed kmllayer class, , consequently vary application; on average, should able load between 10 , 20 layers without hitting limit.

you import kml fusiontables, display in fusiontableslayer , control styling , display via google maps javascript api v3 (again there limitations, seems more work 1 hundred kmllayers)

my answer question: highlight country around border search area only contains example 2 different styles, 1 center (blue border) , 1 surrounding counties (red).


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -