NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: jari@softmade.fi on May 08, 2014, 03:20:07 AM
-
Hello
I need markers, with the car number from 1 - 999 in six colors.
Markers themselves are not the problem: http://www.lumiere-couleur.com/pub/soft/markers/
But is the only way to add the script to jquery.nt-maps.js file for each mark ?
Regards
Jari
-
you can add the markers to your own custom script file, as long as they are in a script file they shouldn't have to be in jquery.nt-maps.js file.
There are a bunch of markers declared at the bottom of that file, so as long as you follow that pattern you should be able to add as many as you like (to your own file.) The existing ones are;
greenMarker
redMarker
pinkMarker
purpleMarker
brownMarker
blueMarker
aquaMarker
yellowMarker
That's more than 6 so might already be sufficient for your needs.
the pattern is;
var yellowMarker = L.icon({
iconUrl: '/images/marker-icon-yellow-2x.png',
iconRetinaUrl: '/images/marker-icon-yellow.png',
shadowUrl: '/images/marker-shadow.png',
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
shadowSize: [41, 41]
});
-
Thanks Bruce
I added in a couple of markers, and they work well.
But now they are in jquery.nt-maps.js file
Is there any examples of how and where the file is added?
-
Found !!!
That was really easy.
I just added name of my own script in Webserver / extensions / Nettalk or NetSimple object / Settings / scripts.