jeffreykemp / jk64-plugin-reportmap

Report Google Map APEX Plugin
https://jeffreykemp.github.io/jk64-plugin-reportmap/
MIT License
43 stars 16 forks source link

Trouble Showing text with pins. #170

Closed zachbarkus closed 1 year ago

zachbarkus commented 1 year ago

I am having some trouble showing text along with an icon. Is there a way to do this?

I am using PL/SQL and Oracle Apex. The map is loading just fine, I have been able to get very close to my desired output on the map, I just need to have text show below the icon.

If there is a way to combine the pin view and the info layer that would be ideal for the project I am working on.

image image

A combination of the two is what I need but I am not sure how to make that happen. Any feedback would be greatly appreciated.

zachbarkus commented 1 year ago

Fixed it with this in the Initialization JavaScript Function

this.options.showInfoLayer = true;

this.options.infoLayerFormatFn = function(layer, marker) { layer.options.verticalOffset = -40; //pixels layer.options.minZoom = 2; // hide the info layer if zoomed out past this leve

};