Hot answers tagged

8

The best way to import symbols in a map document is to use EMF format. This will maintain the vectors, allow resizing in ArcMap without loss of quality. Since there is no "background" to a vector drawing, it will appear correctly transparent in ArcMap. Alternately, you can make the bitmap marker method work by filling the "transparent" background portions ...


7

It looks strange that you add both a GeoJSON layer from result.geojson and a marker created from [result.lat, result.lon]. If result.geojson contains the same point information as [result.lat, result.lon], you are adding both markers to your map.


5

You can use Inkscape. It's a very powerful vector design Opensource software that will allow you create and export transparent vector symbols in to emf files. You will then be able to import (or copy/paste) it in arcMap maintaining its transparency. You can also fill the background with a color of your desire by Right-click Image > Properties > Frame > ...


5

Geoserver layers have associated styles. These styles are written in Styled Layer Descriptor (SLD), a subset of XML. To change your styles, you'll have to edit the SLD. In Geoserver, the SLD can be edited using the Style Editor in the Styles Page. Pretty ain't it? Fortunately, you don't have to edit the Styles by hand. A workaround is to use a GIS ...


3

It's not currently possible (as of version 2.4). It's a valid request though - you should file it over at http://hub.qgis.org/issues


3

My first answer was apprently not working and as I am now facing the same problem here a new approach: Leaflet supports an event called contextmenu. As found in the Leaflet event documentation here. Fired when the user pushes the right mouse button on the map, prevents default browser context menu from showing if there are listeners on this event. So ...


3

Preventing default behavior in IE and all other browsers: event.returnValue = false; if (event.preventDefault) event.preventDefault();


3

Instead of merging these two databases (also keep in mind that you might want to prevent creating a derivative database, see the OSM legal FAQ) you could also just draw markers for your equipment on top of existing tiles via Leaflet or OpenLayers by pulling them from your second database.


3

If you still have the reference to your marker, simply use marker.options to access the options object assigned to it. In your case: marker.options.draggable.


3

I was able to solve this issue by just deleting/not specifying the iconAnchor property of the custom icon. Then the 'icon's center' will always remain at the correct position by default.


2

Add the marker and then add textSymbol to show labels on the markers. Like this: var markerGraphic = layer.add(new esri.Graphic(point, new esri.symbol.PictureMarkerSymbol('images/pin.png', 38, 44).setOffset(0,15))); var textSymbol = layer.add(new esri.Graphic(point, new esri.symbol.TextSymbol(counter).setOffset(0,12)));


2

You are going to the marker layer's properties Display tab and changing the transparency, correct? As I'm guessing you know this is the main way to change the transparency of any layer, including marker symbols. If that doesn't work, I wonder if you don't have have some kind of read-only problem. May be worth trying to copy that layer and paste it in as a ...


2

Based on my experience ArcMap will not honor any EMF transparencies irregardless of which program you use. (Backround wil always render white) If it is only background you want to remove and preserve the EMF as vector, you can use ArcMap itself to create the EMF. An EMF created in ArcMap however will render background fully transparent. If you try to make ...


2

Try this internal function: L.DomEvent.stopPropagation(event); It should do the trick. P.S. I never found that in any documentation but saw it used in a patch. Use at your own risk. ;) Edit: I also found this internal function L.DomEvent.preventDefault(event); Which seems to be very much the same as event.preventDefault() which is in jQuery.


2

It looks like you are using GeoServer for publish your data. See official GeoServer docs. There is very helpful Introduction to GeoServer workshop from OpenGeo especially Styling section in your case.


2

See example Overpass API&MarkerCluster on https://github.com/binaworks/osmtagviz or https://github.com/stork-map/stork-map.github.io (http://stork-map.github.io/#6/48.611/31.674)


2

You need to keep track of your markers in an array. var markerArray = []; Every time you add a marker you push it to the array. var marker = new L.marker(...); markerArray.push(marker); Then if you wanted to apply some event listener to each of the markers you just iterate over that list. for(var i=0;i<markerArray.length;i++){ ...


2

if you mean iterate over all the individual points in an L.markerClusterGroup(), you can use something like this to access the individual layers markers.eachLayer(function(layer){ console.log(layer) }); If you want to get at the points/layers in an individual cluster, you can use getAllChildMarkers() markers.on('clusterclick', function (a) { ...


2

Starting from the custom example from the github repo, modify the iconCreateFunction to add a different css class based on the size of the cluster: iconCreateFunction: function (cluster) { var markers = cluster.getAllChildMarkers(); var n = 0; for (var i = 0; i < markers.length; i++) { n += markers[i].number; } var small = n < 200; var ...


2

If you have done your three tasks individually, I won't get into how to achieve them. To bring them together your best bet will be a map with two different vector layers. Store the small points in the first one and the markers in the second one. Then assign a mouseover event to the second layer with a function to animate it. Achieving the animation in ...


2

No, it not possible to export anything from google maps.


2

You should add the script that loads the markercluster plugin after you've loaded the core leaflet application. The markercluster functionality is based on extended/new classes from Leaflet, so it has to read Leaflet first. So, put this line: <script ...


2

Your code looks correct and the marker is visible, however, you will need to zoom out a little bit to see it since the marker you dropped is too close to the north pole (see image below): I tested your on jsfiddle and I am able to see the marker by changing the default zoom level from 3 to 0.


2

You can add an Arrow in Arcmap. This is what you need to do: Using the Draw toolbar insert a straight line. Double click on the line and change its properties as illustrated in the below


2

Marker's have a property called dragging which is an instance of Draggable. You can use marker.dragging.enable() and marker.dragging.disable() to turn dragging on and off. Here's an example: http://jsbin.com/sowere/edit?html,output


2

You need to pass the map as a parameter to your control. Map is undefined on the way you pass it. Change the last line of your code from this map.addControl(new app.Geolocate()); to this map.addControl(new app.Geolocate('',map)); check your fiddle with this tiny change here


2

You can use setStyle within the mousemove function: layer.on({ 'mousemove': function (e) { //I want to make the point a red style ? this.setStyle({fillColor:"#ff0000"}); ... } )}


2

You can create a marker first without any location information (and without adding it to the map), then just use .setLatLng to change its location: var marker = L.marker(false); geocoderControl.on('select', function(object){ var coord = object.feature.geometry.coordinates; marker.setLatLng([coord[1], coord[0]]).addTo(map); }); The marker is only ...


2

an event listener and change the icon through setIcon() method: createdMarker.on("dblclick", function(evt) { var myIcon = L.icon({ iconUrl: 'res/marker-icon-red.png', shadowUrl: 'res/marker-shadow.png' }); this.setIcon(myIcon); }); Or you can get some help from this Tutorial


2

Instead of a marker you can generate a buffer, setting each category (metro, tam and bus) to a numeric field (1000, 750 and 500). Then run the following queries: SELECT cartodb_id, ST_Transform( ST_Buffer(the_geom::geography, 1000)::geometry ,3857 ) AS the_geom_webmercator FROM table_name WHERE field_name ilike 'metro'; SELECT ...



Only top voted, non community-wiki answers of a minimum length are eligible