hi,
is it possible to use the google.maps.MapTypeStyle object properties?
with featureType you can define, which elements will be displayed in the map (poi/landscape/transit/...)
https://developers.google.com/maps/documentation/javascript/reference#MapTypeStyle
i can't find it in your component...
Hi,
However, this is a good suggestion and we'll consider adding this feature in a future version.
Alternatively some map elements and controls can be enabled/disabled from the ControlsOptions and MapOptions properties.
Please refer to the PDF manual for a full list with descriptions.
that would be great, if you can implement this feature!
i tried "MapOptions.DisablePOI" and found out, that changing it's value at runtime has no effect.
am i missing something?
however, changing "TMapOptions.SetDisablePOI" in UWebGMaps like this is working at runtime:
procedure TMapOptions.SetDisablePOI(const Value: Boolean);
begin
FDisablePOI := Value;
if Value then
FWebGmaps.ExecJScript('map.setOptions( {styles:[{"featureType":"poi","stylers":[{"visibility":"off"}]}]} );')
else
FWebGmaps.ExecJScript('map.setOptions( {styles:[{"featureType":"poi","stylers":[{"visibility":"on"}]}]} );')
end;
Hi,
This change will be included with the next release of the TMS VCL WebGMaps.
it would be nice to have all possible map features as a property of TWebGMap.
i wrote a wrapper for ExecJScript to set the features at runtime ... but using the components properties will be the "right" way.
The following features are available (GOOGLE Maps API reference):
all(default) selects all features.administrativeselects all administrative areas. Styling affects only the labels of administrative areas, not the geographical borders or fill.administrative.countryselects countries.administrative.land_parcelselects land parcels.administrative.localityselects localities.administrative.neighborhoodselects neighborhoods.administrative.provinceselects provinces.
landscapeselects all landscapes.landscape.man_madeselects structures built by humans.landscape.naturalselects natural features.landscape.natural.landcoverselects landcover features.landscape.natural.terrainselects terrain features.
poiselects all points of interest.poi.attractionselects tourist attractions.poi.businessselects businesses.poi.governmentselects government buildings.poi.medicalselects emergency services, including hospitals, pharmacies, police, doctors, and others.poi.parkselects parks.poi.place_of_worshipselects places of worship, including churches, temples, mosques, and others.poi.schoolselects schools.poi.sports_complexselects sports complexes.
roadselects all roads.road.arterialselects arterial roads.road.highwayselects highways.road.highway.controlled_accessselects highways with controlled access.road.localselects local roads.
transitselects all transit stations and lines.transit.lineselects transit lines.transit.stationselects all transit stations.transit.station.airportselects airports.transit.station.busselects bus stops.transit.station.railselects rail stations.
waterselects bodies of water.