A way to set zoom limit in google_map in googleway library - max

my problem is simple. Need to set max zoom in the google_map object from gooleway package.
I need that to protect privacy. So I need to find some way to disallow user to keep zooming data to single observations.
Have you got any ideas?
Regards

Related

Automatic scale block depending on viewport scale?

In autocad i am trying to make a block that will automaticly scale, depending on the viewport scale where it is visible in.
So far, without luck. Also through google i cant seem to find anything related.
So i was wondering, is this even possible to make ?
As #Miirr says, you can use an annotative block for this. An annotative block can have multiple scales, rotations and multiple positions. Please read the documentation here : http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ff1bb1a0510dab2fb04a-7f5c.htm,topicNumber=d0e111300

Set a country background to my Google Geomap

A few days ago I've explored geomaps and, however, it turned out to be easy to change the properties of the elements.
But I have two questions:
I'd like to add rivers and forests on the maps. So Ive considered to set a background image instead of the geomaps figure. But I can't find a way to get this one fixed. Is there a way to set a background picture for a country or region?
How can I change the shape of the "bubbles" when you select a city e.g. "London"? I'd like to change it to a square.
Thanks in advance for your help!
Unfortunately what you're looking for is not available in geocharts in their current implementation.
Using a background image is possible in the sense that you can use CSS to make all shapes in the map transparent, and use a background image in the div to make it appear as if the little circles are being drawn on a map with forest and rivers, but you will run in to two big hurdles:
Your map will need to be identical in size/layout to the Google Maps SVG
If Google ever changes the SVG they use (or the view/projection they use) you will need to edit yours too
This isn't ideal, obviously. You could work around it by creating custom javascript to write rivers and forests on your map, but that is going to be a huge headache (especially if you are using multiple maps/views).
As for the circles, you can't change them to squares without hacking the actual SVG in the background with javascript. While this is definitely possible (if you're really good with SVG/Javascript), it again isn't using any of the fancy features of geocharts, and is more just a custom solution that will have to be updated if/when google updates their API.
Rather than doing it that way, you may want to look in to the same implementation on google maps itself. That will allow you to use custom markers, draw custom shapes, etc. with a lot more flexibility (and a much more stable API).

How to create big organization charts like google maps?

I don't know javascript (unfortunately) and I'd like to make a mindmap-like "organization chart" similar to this one:
This map should have an ability to zoom-in and zoom-out similar to google maps, and the ability to arbitrarily connect nodes. So it is more like a free graph, not like an ordinal tree. Mindomo makes this pretty well, but it is commercial and flash-oriented.
Does anybody know of a similar solution?
My research pointed me out that this could be a svg sketch, possibly generated offline, or maybe something using canvas. A click on the node should redirect to some web location.
Google maps is good because it also hides some details, and so should do this graph map in zoomed out projection.
A few important questions:
Do you need this generated in real time based on some underlying dataset?
Aside from zooming, should the user be able to manually open/close nodes?
You can manually generate this simply using some free tools:
MindMeister
xmind
freemind
although non-traditional, can you consider using Prezi?

using goMap jQuery plugin for google maps api, how can i modify map to allow markers to be added on click?

i have been pretty pleased so far with this plugin, but am having a little issue getting to let me use $goMap.setMap() to allow addMarker.
once the map has been created, i am trying the following: (default is addMarker: false)
$.goMap.setMap({ addMarker: true });
what i am trying to accomplish is to only allow the user to add markers from high zoom levels to they can be more accurate. i can track the zoom level easy enough and i can modify other controls such as nav type and position, but can't set addMarker to true (or multi or false).
it's a great plugin but seems to lack much documentation, although there are a ton of examples.
plugin url:
http://www.pittss.lv/jquery/gomap/examples.php
any ideas on this would be appreciated.
thanks.
"i can track... but can't set addMarker to true (or multi or false)."
I can't understand the question, but I suggest to use directly the google maps API, I don't see this plugin very useful.

How can I add a MyDrawPanel to a program while adding other objects as well?

I am attempting to make a simple game, and I have loaded an image onto a myDrawPanel, which is on the JFrame, successfully. However, I also want to add other things to my GUI, such as buttons, etc. I cannot do this, however, because when I add the myDrawPanel to a JPanel, all I get is a small square in the top center of the window. This is proving to be greatly limiting, and I was wondering if there is an alternative "JObject" that I can add the myDrawPanel to in order to allow for the customization of my GUI. Thanks in advance, and Merry Christmas!
A JPanel (or sub-class) generally obtains its size from the components it contains. If no components are in it, it will be small.
One way to fix that is to call setPreferredSize(Dimension) on the customized panel.
p1.setPreferredSize(new Dimention(1100,800));

Resources