Friday, 17 August 2018

vector - Customizing Popups in Openlayers


Is it possible to customize the shape of popups in OpenLayers? For example, I am creating a pop-up using the following approach:


var popup = new OpenLayers.Popup.FramedCloud(

"popup",
OpenLayers.LonLat.fromString(feature.geometry.toShortString()),
null,
'
'+feature.data.Name + '
test.url' + '
',
null,
true
);

This creates a popup with the following appearance:


enter image description here



Is it possible to change from the rounded corners and a curved 'connection' to a more square pop-up?



Answer



beside all answer you can make your popup as google map popup style. check out this link which will help you to make g-style popup...


popup script codes,


popup images,


and so css...


googlestyle


i hope it helps you..


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...